package com.user.test.model.retrofit

import io.reactivex.Observable
import io.reactivex.Single
import retrofit2.http.*

//@GET("/search/{request}")
//@GET("/customsearch/v1?key=   AIzaSyB4kmV_ILrOKd_FNUFOHrI5DvC8A6j-YgY  AIzaSyD3-gBNJ4wulIUwPCsptp-6UrXYUvvAbL0 &cx=0c2e524ae140e0249&q={request}&start={startPage}")
interface SearchResultApi {
    @GET("/customsearch/v1?key= AIzaSyD3-gBNJ4wulIUwPCsptp-6UrXYUvvAbL0 &cx=0c2e524ae140e0249")
    @Headers("Content-type: application/json")
    fun getSearchResultList(
        @Query("q") request: String,
        @Query("start") startPage : Int
    ): Single<SearchResultListResponse>
}